﻿<%@ WebHandler Language="C#" Class="GetNews" %>

using System;
using System.Web;

public class GetNews : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        ContentActions cont = new ContentActions();
        CategoryActions cate = new CategoryActions();
        int cid = (int)cate.GetList("动态").Rows[0]["ID"];
        context.Response.Write(JsonHelper.ToJson(cont.GetList(cid)));
    }

    public bool IsReusable
    {
        get { return false; }
    }

}